<?php
namespace app\common\only\tysj;

class Store extends Base {
	protected $prefix = 'tysj\\Store';

	public function current_store() {
		$model = $this->getModel('tysj\\Store');
		return $this->get('current_store', function($model) {
			$user = loadStorage('Login')->getCurrentUser();
			$row = $model->where(['uid' => $user['id']])->find();
			return $row;
		}, [$model]);
	}
}